package com.tdam2012.grupo05;

import android.os.Bundle;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;

public class HistorialAcciones extends TabActivity {
        
        private TabHost _tabHost;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_historial_acciones);
        
        Resources res = getResources();
        
        _tabHost = getTabHost();
        TabHost.TabSpec spec;
        Intent intent;
        
        //First Tab
        intent = new Intent(this, HistorialLlamadas.class);
        spec = _tabHost.newTabSpec("Llamadas")
                        .setIndicator("",res.getDrawable(R.drawable.phone))
                        .setContent(intent);
        
        _tabHost.addTab(spec);
        
        //Second Tab
        intent = new Intent(this, HistorialSMS.class);
        spec = _tabHost.newTabSpec("Sms")
                        .setIndicator("", res.getDrawable(R.drawable.sms_2))
                        .setContent(intent);
        
        _tabHost.addTab(spec);
        
        
        //Third Tab
        intent = new Intent(this, HistorialLlamadas.class);
        spec = _tabHost.newTabSpec("E-mails")
                        .setIndicator("",res.getDrawable(R.drawable.mail_2))
                        .setContent(intent);
        
        _tabHost.addTab(spec);
        
        
        //fourth Tab
        intent = new Intent(this, HistorialSMS.class);
        spec = _tabHost.newTabSpec("MensajeWeb")
                        .setIndicator("", res.getDrawable(R.drawable.chat_2))
                        .setContent(intent);
        
        _tabHost.addTab(spec);              
    }
  
}
